package com.iplay.service.notification.type.order.type;

import java.util.LinkedList;
import java.util.List;

import com.iplay.component.im.OutgoingMessage;
import com.iplay.dto.ApiResponseMessage;
import com.iplay.service.notification.type.order.OrderMessage;
import com.iplay.service.notification.type.order.OrderMessageEntity;
import com.iplay.service.notification.type.order.OrderOutgoingMessage;
import com.iplay.service.user.UserContrains;

public class OrderReviewedMessage extends OrderMessageType{

	public OrderReviewedMessage(OrderMessageEntity entity) {
		super(entity);
	}

	@Override
	public List<OutgoingMessage> getOutgoingMessage() {
		OrderMessageEntity entity = this.getEntity();
		List<OutgoingMessage> messages = new LinkedList<>();
		messages.add(new OrderOutgoingMessage(UserContrains.SUPER_ADMIN_USERNAME, new OrderMessage(entity.getOrderId(), String
				.format(ApiResponseMessage.ORDER_REVIEWED, entity.getCustomer(), entity.getHotel()))));
		return messages;
	}
	
	
}
